package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Grade;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IGradeService {
    int saveOrUpdate(Grade record);

    Grade selectByPrimaryKey(Long id);

    List<Grade> selectAll();

    PageResult query(QueryObject qo);

    /**
     * 根据id改变部门的状态
     * @param id
     */
    void changeState(Long id);


    //根据班级名称找班级对象
    Grade getByClassName(String className);
    List<Grade> selectByRoomId(Long roomId);

    /**
     * 根据教室ID查询班级对象
     * @param id
     * @return
     */
    Grade selectByClassroomId(Long id);

    void delete(Long gradeId);

    void updateTeacher(Long sid,Long tid);
}

